import request from '@/utils/request'

// 查询地区店铺信息列表
export function listShopinfo(query) {
  return request({
    url: '/system/shopinfo/list',
    method: 'get',
    params: query
  })
}

// 查询地区店铺信息详细
export function getShopinfo(shopId) {
  return request({
    url: '/system/shopinfo/' + shopId,
    method: 'get'
  })
}

// 新增地区店铺信息
export function addShopinfo(data) {
  return request({
    url: '/system/shopinfo',
    method: 'post',
    data: data
  })
}

// 修改地区店铺信息
export function updateShopinfo(data) {
  return request({
    url: '/system/shopinfo',
    method: 'put',
    data: data
  })
}

// 删除地区店铺信息
export function delShopinfo(shopId) {
  return request({
    url: '/system/shopinfo/' + shopId,
    method: 'delete'
  })
}
